class LBJN implements Car{
    String color = "红色";
    int price = 1500000;

    @Override
    public String getName(){
        return color+"兰博基尼";
    }


    @Override
    public int getPrice(){
        if(color.equals("蓝色"))
            price += 300000;

        return price;
    }

    public LBJN(String color){
        this.color = color;
    }
}
